package com.twu.biblioteca;

/**
 * Created by Rob on 11/09/2014.
 */
public class Book {
    private String name;
    private String author;
    private int yearOfPublication;
    public Book(String inputTheName, String inputAuthor, int inputYearOfPublication){
        name = inputTheName;
        author = inputAuthor;
        yearOfPublication = inputYearOfPublication;
    }

    public String getName(){
        return name;
    }

    public String getAuthor(){
        return author;
    }

    public int getYearOfPublication(){
        return yearOfPublication;
    }

    public String toString(){
        return String.format("%40s", name) + " " + String.format("%20s", author) + String.format("%20s", yearOfPublication);
    }
}
